<template>
  <div class="coupon-manage">
    <el-card>
      <h2>优惠券管理</h2>
      <el-table :data="coupons">
        <el-table-column prop="couponID" label="编号" />
        <el-table-column prop="userID" label="用户ID" />
        <el-table-column prop="couponvalue" label="面值" />
        <el-table-column prop="coupontime" label="有效期" />
        <el-table-column prop="couponstatus" label="状态" />
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button size="mini" @click="sendCoupon(scope.row)">发放</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return { coupons: [] };
  },
  methods: {
    sendCoupon(coupon) {}
  }
};
</script>
<style scoped>
.coupon-manage { max-width: 1000px; margin: 40px auto; }
</style>
